Php implements RFC-compatible email address verification
/*
Copyright 2009 Dominic Sayers
Dominic_sayers@hotmail.com)
Http://www.dominicsayers.com)
This source file is subject to the Common
From: http://www.cnblogs.com/Dannier/archive/2010/11/06/RegExp.html
Email Verification
A regular expression (often abbreviated as Regexp) is a mode written with special symbols to describe one or more text strings. The regular expression is used
the most common verification is email address verification. Websites are common. Various web scripts also use regular expressions ( Regular Expression ) verify the email address we entered to determine whether the email address is valid. Some can
The most common verification is email address verification. Websites are common. Various web scripts also use regular expressions "(Regular Expression) Verify the email address we entered to determine whether the email address is valid. Some can
Regular expression verification email address and phone number
Verify the regular expression of the phone number:(\ D {3}-) (\ d {8}) $ | (\ d {4}-) (\ d {7 }) $ | (\ d {4}-) (\ d {8}) $(The new phone number is used here)Verify the
Php mail address regular expression implementation and detailed description. This article not only describes the regular expression but also describes the composition and usage of mailbox regular expressions. For more information, see, at the same
This article not only describes the regular expression but also describes the composition and usage of mailbox regular expressions. For more information, see, at the same time, we also provide a variety of mailbox verification instances
This article
First, attach the codeCopy codeThe Code is as follows:^ [_. 0-9a-z-] + @ ([0-9a-z] [0-9a-z-] +.) + [a-z] {2, 3} $ In this regular expression, "+" indicates that one or more strings appear consecutively. "^" indicates that the next string must start,
This article not only describes the regular expression but also describes the composition and usage of mailbox regular expressions. For more information, see, at the same time, we also provide a variety of different email verification instances with
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.